import 'package:dio/dio.dart';
import 'package:im_flutter_sdk_example/request/init_dio.dart';
import 'package:im_flutter_sdk_example/request/req_app.dart';
import 'package:im_flutter_sdk_example/request/req_comment.dart';
import 'package:im_flutter_sdk_example/request/req_company.dart';
import 'package:im_flutter_sdk_example/request/req_group.dart';
import 'package:im_flutter_sdk_example/request/req_home.dart';
import 'package:im_flutter_sdk_example/request/req_moment.dart';
import 'package:im_flutter_sdk_example/request/req_news.dart';
import 'package:im_flutter_sdk_example/request/req_user.dart';
import 'package:im_flutter_sdk_example/request/req_verification_code.dart';

import 'req_easymob.dart';

class Request {
  Dio _dio;

  Request() {
    _dio = initDio();
  }

  ReqUser get user => ReqUser(_dio);

  ReqVerificationCode get verificationCode => ReqVerificationCode(_dio);
  ReqHome get home => ReqHome(_dio);
  ReqGroup get group => ReqGroup(_dio);
  ReqComment get comment => ReqComment(_dio);
  ReqNews get news => ReqNews(_dio);
  //  环信 聊天 friendList
  ReqEasymob get im => ReqEasymob(_dio);

  ReqCompany get company => ReqCompany(_dio);

  ReqMoment get moment => ReqMoment(_dio);

  //关于我们
  ReqApp get app => ReqApp(_dio);

  // 登录注册

  // 专家

  // 联盟

  // 推荐
}
